package edu.uow.devdocs
/**
 * The IssueType entity.
 *
 * @author    
 *
 *
 */
class IssueType {
    static mapping = {
         table 'ISSUE_TYPE'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id column:'ISSUE_TYPE_ID'
		 id generator: 'sequence', params:[sequence:'ISSUE_TYPE_SEQ']
		 sort name:'ASC'
		 
    }
    String name
    Date lastUpdated

    static constraints = {
        name(size: 0..255)
        lastUpdated(nullable: true)
    }
    String toString() {
        return "${name}" 
    }
}
